package com.plian.system.entity.sys;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("sys_base_service_org")
@ApiModel(value = "业务组织主表")
public class BaseServiceOrg extends BaseEntity {

    @ApiModelProperty("业务组织名称")
    private String serviceOrgName;

    @ApiModelProperty("是否启用 0否1是")
    private Integer isEnabled;

    @ApiModelProperty("排序吗 正序")
    private Integer orderNumber;

    @ApiModelProperty("是否主版本 0否1是 主版本只能有一个")
    private Integer isMain;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("复制组织的id")
    private Long copyId;
}
